﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            //左移n位就是乘以2的n次方，右移n位就是除以2的n次方
            int cc = 9;
            int ab = cc << 6;//1001000000

            //int abc = GetGTK(PASSWORD);
            //GetValue(1414137558);
        }
        /// <summary>
        ///adress from pwasword
        /// </summary>
        public const string PASSWORD = "qsiofg4nui897574";// 1414137558

        ////g_tk算法
        ///// <summary>
        ///// g_tk算法 
        ///// </summary>
        ///// <param name="str"></param>
        ///// <returns></returns>
        //private static int GetGTK(string skey)
        //{
        //    int hash = 5381;
        //    if (!string.IsNullOrEmpty(skey))
        //    {
        //        for (int i = 0, len = skey.Length; i < len; ++i)
        //        {
        //            //char c= (char)skey[i];
        //            int a= (hash << 7) ;
        //            hash += a + 0;
        //        }
        //    }//6742
        //    return hash & 0x7fffffff;
        //}

        //private static string GetValue(int gtk)
        //{
        //    int hash = 5381;
        //    if (gtk > 0)
        //    {
                
        //        for (int i = 0; i < 16; i++)
        //        {
        //            gtk -= (hash << 7);
        //        }
        //        //1403117270
        //    }
           
        //    return "";
        //}
    }
}
